package com.lizhe.async.task;

import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

/**
 * 类描述: 普通的异步方法，回导致主线程 main 执行完了，三个异步线程没执行完，或者没执行完整。
 *
 * @author Lz on 2021-11-15
 */
@Component
public class SyncTask extends AbstractTask {

    @Async
    public void doTaskOne() throws InterruptedException {
        super.doTaskOne();
    }

    @Async
    public void doTaskTwo() throws InterruptedException {
        super.doTaskTwo();
    }

    @Async
    public void doTaskThree() throws InterruptedException {
        super.doTaskThree();
    }
}
